package com.shop.controller;


import com.shop.service.Oms_Order_Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.pojo.oms.Oms_Order;
import com.shop.service.Oms_Order_Service;
import com.shop.utils.LayuiUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class Oms_Order_Controller {

    @Autowired
    private Oms_Order_Service oms_order_service;


    /**
     * 订单多条件显示所有-后台
     * @param page
     * @param limit
     * @param oms_order
     * @return
     */
    @GetMapping("/find_Admin_All_Oms_Order")
    public LayuiUtils<Oms_Order> find_Admin_All_Oms_Order(Integer page, Integer limit, Oms_Order oms_order){
        Page<Oms_Order> pages = new Page<>(page,limit);
        return oms_order_service.find_oms_order(pages,oms_order);
    }


}
